home *** CD-ROM | disk | FTP | other *** search
- debug off
- ;JTL 9-17-87 23:45pm
- getscr
- clrscr
- colorfg 15
- box 6 1 75 13
- colorfg 14
-
- note
- display ' ****-'
- colorfg 13
- colorbg 1
- display 'Multiple'
- colorfg 14
- colorbg 0
- display '-File Upload/Logoff PCBoard V11/12.0 Qmodem3.1-****'
- colorfg 15
- Note
- Note Instructions:
- colorfg 6
- Note Enter a filename to be uploaded after each prompt.
- Note Maximum of TEN (10) filenames can be entered.
- Note A blank <CR> entry starts the transfers.
- colorfg 7
- Note Invalid or Existing Filenames will be Automatically bypassed.
- Note
- string login transfer logend dirpath correct cnt file cownt count cwnt kount
- string desc
- getlog:
- colorfg 6
- display " Select Auto-Logoff after File Transfers [Y]es or [N]o ? > "
- colorfg 15
- inkey login
- displayln '$login'
- if '$login' = 'N' nlog
- if '$login' = 'Y' ylog
- goto getlog
- nlog:
- assign logend "done"
- goto home
- ylog:
- assign logend "logoff"
-
- home:
- colorfg 6
- display ' Select Upload Protocol [X,C,I,Y,G,Z <Q>=Quit] > '
- colorfg 15
- inkey 9
- displayln '$9'
- if '$9' = 'X' menu
- if '$9' = 'C' menu
- if '$9' = 'I' menu
- if '$9' = 'Y' menu
- if '$9' = 'G' menu
- if '$9' = 'Z' menu
- if '$9' = 'Q' done
- goto home
-
- menu:
- selpath:
- colorfg 3
- Note Enter Upload Drive:\Path DO NOT use a "\" to end the Path.
- colorfg 6
- display ' Drive:\Path > '
- colorfg 15
- get dirpath 45
- if '$dirpath' = '' selpath
- CHDIR $dirpath\
- IF $SUCCESS valid
- CHDIR $dirpath
- IF $SUCCESS valid
- colorfg 12
- displayln " Path is Invalid, Re-enter."
- colorfg 6
- goto selpath
- valid:
- colorfg 2
- display " Path is Valid."
- colorfg 6
- display ' Is Path Correct [Y]es or [N]o ? <CR>=Yes] > '
- colorfg 15
- inkey correct
- displayln '$correct'
- if '$correct' = 'Y' getone
- if '$correct' = 'N' selpath
-
- getone:
- colorfg 2
- assign cwnt 0 ;actual file counter
- assign cnt 1 ;visual file counter
- colorfg 2
- display ' File # $cnt > '
- colorfg 3
- get file 12
- if '$file' = '' $logend
- goto okfile
- nextone:
- colorfg 2
- display ' File # $cnt > '
- colorfg 3
- get file 12
- okfile:
- exist $dirpath\$file desc1
- colorfg 4
- if '$file' = '' go
- note File Not Found, enter another name or <CR> to Abort.
- goto nextone
- desc1:
- colorfg 4
- display 'Desc. 45 Char Max. > '
- colorfg 5
- get desc 45
- if '$desc' = '' desc1
- push '$file'
- push '$desc'
- incr cnt
- incr cwnt
- if '$cnt' = '11' go
- goto nextone
-
- go:
- colorfg 7
- gotoxy 1 13
- note
- display ' Online with: '
- colorbg 2
- colorfg 15
- display ' $board '
- colorbg 0
- colorfg 7
- display ' '
- colorbg 4
- colorfg 15
- display '[$9]'
- colorbg 0
- colorfg 7
- displayln ' Protocol '
- colorfg 10
- display ' $cwnt'
- colorfg 7
- if '$cwnt' = '1' one
- display ' Files will be Uploaded in Reverse order from: '
- goto skip
- one:
- display ' File will be Uploaded '
- goto cont
- skip:
- colorbg 2
- colorfg 15
- display ' $cwnt to 1 '
- colorbg 0
- colorfg 7
- cont:
- colorbg 0
- displayln ' '
- display ' '
- colorfg 0
- colorbg 6
- display "====================[ Online Text Area Below ]===================="
- colorbg 0
- colorfg 12
- box 1,14,80,$last_row ;window can be used instead
- clrscr
- colorfg 3
- timeout 60 $logend
- assign cownt $cnt
-
- start:
- assign kount $cnt ;upload file counter in window
- next:
- send "{"
- colorfg 3
- WAITFOR "Command?"
- next1:
- pause 1000
- decr kount
- when
- pop desc
- pop file
- if '$file' = '' $logend
- when "board file" next1
- when "Not Accepted" start
- SEND "u $file $9{"
- waitfor "description"
- pause 1000
- send "$desc{"
- pause 5500
- colorfg 6
- note Wait Several Seconds for Upload to Begin
- colorfg 3
- pause 500
- gotoxy 1 40
- displayln ' '
- display ' '
- colorbg 2
- colorfg 15
- display 'File # $kount'
- colorbg 0
- colorfg 3
- displayln ' '
- if $offline discon ;use semicolon in front for offline testing
- UPLD $dirpath\$file $9
- if $offline discon ;use semicolon in front for offline testing
- pause 5000 ;for zmodem only so 00 is not accepted
- decr cownt
- when
- if '$9' = 'z' tones
- goto next
-
- tones:
- beep 800
- beep 600
- beep 400
- goto next
-
- discon:
- colorfg 10
- putscr
- gotoxy 25 12
- displayln 'Line Disconnect has Occurred......'
- exit
-
- done:
- send "{"
- colorfg 10
- putscr
- exit
-
- logoff:
- putscr
- clrscr
- when
- when "Command?" logout
- send "{"
- waitfor "Command?"
-
- logout:
- pause 4500
- clrscr
- colorfg 6
- note
- note Auto Logoff was Previously Selected.
- colorfg 15
- note
- note PRESS [Esc] then [Y] to Abort the Logoff.
- colorfg 10
- assign 0 $wherex
- assign 1 $wherey
- assign cnt 9
- tmout:
- gotoxy $0 $1
- display ' $cnt Seconds to Auto Logoff.
- pause 200
- if '$cnt' = '2' bye
- decr cnt
- goto tmout
- bye:
- gotoxy $0 $1
- display ' 1 Second to Auto Logoff.
- pause 200
- colorfg 15
- note Auto-Logoff Completed.
- colorfg 10
- send "g{"
- pause 5000
- Hangup
- exit
-
-
-
-